home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
KH01A.422
< prev
next >
Wrap
Text File
|
1993-03-10
|
3KB
|
114 lines
KH01A.MOD - Allows you to have //NEWS with 3 news files
King Hippo #1 @4652
Sun Mar 07 17:56:12 1993
┌───────────────────────────────────────────────────────────────────────────┐
│ MOD NAME : KH01A.MOD MOD AUTHOR: King Hippo │
│ DiFFiCULTY : 2/10 DATE : Feb. 7, 1993. │
│ WWiV VERSiON : 4.22 │
│ FiLES AFFECTED: MISCCMD.C, BBS.C │
│ DESCRiPTiON : Allows you to have a //NEWS command, which will display 3 │
│ news files. 1NEWS, 2NEWS, 3NEWS! But can have more... │
└───────────────────────────────────────────────────────────────────────────┘
LONG DESCRiPTiON─────
There are couple of things that you can set to your own needs and likes..
First of all any lines that have, PL("....."); can be put into BBS.STR
and instead of PL("....text...");, you can put PL(5,GET_STRING(1000)); or
whatever the number of that string is... But I highly suggest you leave it
this way...
The modification will display 1NEWS.ANS to ansi users and 1NEWS.MSG to
non ansi users... 1NEWS is displayed if a user hits 1, 2NEWS it 2...etc.
You can change/add/delete the choices as you please.. But remmber to change
CH=ONEK("123"); to whatever the CASE statements are after... On with the mod.
Legend :
/* ADD */ ADD this line
/* DELETE */ DELETE this line (or comment out with // or /* blah blah */)
/* CHANGE */ CHANGE this line
/* SEARCH */ SEARCH for this line
Mod:
STEP --- 1 ---
Back up your source...
PKZIP SOURCE -A *.C -A *.H -A *.MAK
STEP --- 2 ---
Open up MISCCMD.C ....
/* SEARCH */ lseek(f,((long) ii)*sizeof(votingrec),SEEK_SET);
/* SEARCH */ write(f,(void *)&v,sizeof(votingrec));
/* SEARCH */ nl();
/* SEARCH */ nl();
/* SEARCH */}
/*************** NEWS DISPLAY... RIGHT AFTER THOSE FEW LINES ********/
void news(void)
{
char ch;
//***************
// THESE 3 LINES OF TEXT CAN BE PUT INTO YOUR BBS.STR WITH ESM..
// TO DO THAT.. YOU SHOULD REMMBER THE 4 LINE NUMBERS... AND THEN
// PUT PL(GET_STRING(xxxxx)); WHERE xxxx IS THE NUMBER OF THE STRING...
//***************
if (!incom)
pl("8N7E9W1S 1Di9sp7la8y 3Mod by King Hippo 1@4661\n");
pl("21. 1Today's News");
pl("22. 1Yesterday's News");
pl("23. 1Services and sales");
//***************
nl();
prt(2,"Which (1-3),? ");
ch=onek("123");
switch(ch) {
case '1':
printfile("1NEWS");
break;
case '2':
printfile("2NEWS");
break;
case '3':
printfile("3NEWS");
break;
}
/********************** NEWS DISPLAY BY KING HIPPO 1@4661 ENDS HERE ********/
STEP --- 3 ---
Open up BBS.C and search for VOID MAINMENU.... now in it search for whatever
i tell you below to search for.... <grin>...
/* SEARCH */ /*************************************************/
/* ADD */ if ((strcmp(s,"NEWS")==0) &&(actsl>10))
/* ADD */ news();
/* SEARCH */ if ((strcmp(s,"UPLOAD")==0) && (actsl>10))
There, now that wasn't too bad, now was it? If you have a mod you
would like me to install for you, just give me your registration #, so I
can check if you are truly registered... and the mod itself, and I will do
it for you, for FREE!! See ya,
Earth Corruption Error: Start new race (non-human possibly) [Y/N]6_0